package com.bzy.blp.controller;


import com.bzy.blp.service.TestService;
import com.bzy.common.bean.Result;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

@RestController
@RequestMapping("/test")
public class TestController {

    @Autowired
    TestService testService;


    @GetMapping(value = "/getTestCount")
    public Result getTestCount(HttpServletRequest request) throws Exception {
        Result result = new Result();
        result.setData(testService.getTestCount());
        return result;
    }


}
